package com.mdxl.email.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created by chengjian on 2017/9/20.
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Email implements Serializable{
    public static final long serialVersionUID =1L;
    public String from;
    public String to;
    public String subject;
    public String text;
    public boolean status;
    public String host;
    @Override
    public String toString() {
        return "Email [from=" + from + ", to=" + to + ", subject=" + subject + ", text=" + text + "]";
    }
    public Email(String from, String to, String subject, String text) {
        super();
        this.from = from;
        this.to = to;
        this.subject = subject;
        this.text = text;
    }

}
